﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using Common;

namespace Snow
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
         //  Utility.SetAppConfig("sss", "fff");
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string name= FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text.Trim(), "MD5");

            if (name == "B41D3EFE1F6827035ED3149DBF841681")
            {
                Session["LoginOK"] = "true";
                Response.Redirect("Default.aspx");
            }
        }
    }
}